package design.graduation.novelsystem.controller;

import design.graduation.novelsystem.model.domian.Server;
import design.graduation.novelsystem.model.dto.ResultObj;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 洪少尉
 * @Date: 2020/4/20 10:08
 * @Description:
 */
@RestController
@RequestMapping("server")
public class ServerController {
	@RequestMapping("getServer")
	@RequiresPermissions("server:show")
	public ResultObj getServer() throws Exception {
		Server server = new Server();
		server.copyTo();
		return new ResultObj(200,"",server);
	}
}
